<script lang="ts" setup>
import { ref } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter();

import homeModelFourUtil from "./homeModelFourUtil.vue";
import homeModelTwoUtil from "./homeModelTwoUtil.vue";

const props = defineProps({
  streetProduct: {
    type: Array
  }
});



</script>

<template>
  <section class="homeProductModelFourUtil" v-if="props.streetProduct">
    <div class="title"></div>
    <div class="content">
      <div class="content-top">
        <homeModelFourUtil :product="props.streetProduct[0]"></homeModelFourUtil>
        <homeModelFourUtil :product="props.streetProduct[1]" :borderR="false"></homeModelFourUtil>
      </div>
      <div class="content-top">
        <homeModelFourUtil :product="props.streetProduct[2]"></homeModelFourUtil>
        <homeModelFourUtil :product="props.streetProduct[3]" :borderR="false"></homeModelFourUtil>
      </div>
      <div class="content-bottom borderB">
        <homeModelTwoUtil :product="props.streetProduct[4]"></homeModelTwoUtil>
        <homeModelTwoUtil :product="props.streetProduct[5]"></homeModelTwoUtil>
        <homeModelTwoUtil :product="props.streetProduct[6]"></homeModelTwoUtil>
        <homeModelTwoUtil :product="props.streetProduct[7]" :borderR="false"></homeModelTwoUtil>
      </div>
      <div class="content-bottom">
        <homeModelTwoUtil :product="props.streetProduct[4]"></homeModelTwoUtil>
        <homeModelTwoUtil :product="props.streetProduct[5]"></homeModelTwoUtil>
        <homeModelTwoUtil :product="props.streetProduct[6]"></homeModelTwoUtil>
        <homeModelTwoUtil :product="props.streetProduct[7]" :borderR="false"></homeModelTwoUtil>
      </div>
    </div>
  </section>
</template>

<style lang="less" scoped>
.homeProductModelFourUtil {
  width: 3.75rem;
  background: white;
  .title {
    height: .35rem;
    background: url("../../../assets/images/model-icon-3.png") no-repeat center;
    background-size: contain;
    background-color: #f6f6f6;
  }
  .content {
    .content-top {
      display: flex;
      justify-content: center;
      position: relative;
      &:after {
        width: 100%;
        content: "";
        height: .0rem;
        border-top: .01rem solid transparent;
        position: absolute;
        background: #f5f5f5;
        bottom: 0;
        right: 0;
        // -webkit-transform: scaleX(.5);
        // transform: scaleX(.5);
        z-index: 10;
      }
    }
    .content-bottom {
      display: flex;
      justify-content: center;
      position: relative;
      &.borderB:after {
        width: 100%;
        content: "";
        height: .0rem;
        border-top: .01rem solid transparent;
        position: absolute;
        background: #f5f5f5;
        bottom: 0;
        right: 0;
        // -webkit-transform: scaleX(.5);
        // transform: scaleX(.5);
        z-index: 10;
      }
    }
  }
}
</style>

